from django.conf.urls.defaults import patterns
from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',              
    (r'^$', 'fereol.views.index'),
    (r'^przedmiot/P(?P<id>\d+)$', 'fereol.views.przedmiot'),
    (r'^aktualnosci$', 'fereol.views.aktualnosci'),
    (r'^pracownicy$', 'fereol.views.pracownicy'),
    (r'^przedmioty$', 'fereol.views.przedmioty'),
    (r'^erlang$', 'fereol.views.erlang'),
    (r'^algebra$', 'fereol.views.algebra'),
    (r'^automaty$', 'fereol.views.automaty'),
    (r'^lista$', 'fereol.views.lista'),
    (r'^plan$', 'fereol.views.plan'),
	# Example:
    # (r'^fereol/', include('fereol.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),)
